extends "../luoen-3/luoen-3.gd"


var baseId = ""
var upText1 = "降低20%受到的技能伤害"
var upText2 = "爆反装甲伤害提高50%"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("圣盾破裂时，对攻击者造成[装甲*0.3]的技能伤害，并恢复等额血量", "爆反装甲")
var p4 = 1
func upgrade():
	.upgrade()
	if upgraded == 2:
		p4 = 1.5
func afterShengDun(cha):
	var num = (att.def)*0.3
	azurHurtChara(cha, num, sys.HurtType.WEAPON, sys.AtkType.SKILL, "爆反装甲", false, p4)
	healCha(cha, num)

func _onHurt(atkInfo):
	._onHurt(atkInfo)
	if upgraded == 1 and atkInfo.atkType == sys.AtkType.SKILL:
		atkInfo.hurtVal *= 0.8